public class Solution1374 {
    public String generateTheString(int n) {
        StringBuilder s=new StringBuilder();
        for (int i=0;i<n-1;i++){
            s.append('a');
        }
        s.append(n%2==0?'b':'a');
        return s.toString();
    }

    public static void main(String[] args) {
        System.out.println(new Solution1374().generateTheString(4));
    }
}
